const express = require('express')
const app = express()

app.get('/',(req,res)=>{
    res.send('/')
})

app.get('/ab+cd',(req,res)=>{
    res.send('/user')
})

app.get('/article/:section/:page',(req,res)=>{
    res.send(req.params)
})



let server = app.listen(3000,'127.0.0.1',()=>{
    let host = server.address().address
    let port = server.address().port
    console.log(`server is running hostname is ${host} port is ${port}`);
})